package cn.wolfcode.luowowo.common.util;

import cn.wolfcode.luowowo.common.exception.LogicException;

public class AsserUtil {

    public static void hasLength(String value,String msg){
        if (value == null || "".equals(value.trim())){
            throw new LogicException(msg);
        }

    }


    public static void isEquals(String v1, String v2,String msg){
        if (v1==null || v2==null){
            throw new RuntimeException("参数不能为空");
        }
        if(!v1.equals(v2)){
            throw new LogicException(msg);
        }
    }
}
